package drg_group.changzhou_2022.ADRG;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import drg_group.changzhou_2022.Base;
import drg_group.changzhou_2022.MedicalRecord;
import drg_group.changzhou_2022.DRG.MDCB_DRG;

public class BZ1 {
    public static String group(MedicalRecord record){
        String[] adrg_zd={"D18.000x023","D18.000x024","D18.000x025","D18.000x026","D18.000x027","D18.000x028","D18.002","D42.002","D43.002","D43.004","D43.006","D43.008","D43.010","D43.012","D43.102","D43.104","D43.106","D43.402","D43.700","D43.902","D48.900x004+G94.1*","D48.900x010+G05.8*","D48.905+G13.1*","D48.907+G13.0*","E06.302+G94.8*","E12.400","E12.400x001+G99.0*","E16.107+G94.8*","E16.108+G94.8*","E51.200+G32.8*","E63.900x001","E71.300x006","E75.600x002+G32.8*","E75.602+F02.8*","E83.003+F02.8*","E85.400x012","E85.414+I68.0*","G04.100","G04.800","G09.x00","G09.x00x001","G09.x00x002","G09.x00x003","G09.x00x004","G09.x01","G31.800","G40.300x009","G40.305","G40.309","G47.200","G47.300","G47.300x001","G47.300x031","G47.300x033","G47.300x034","G47.300x035","G47.300x036","G47.300x037","G47.301","G47.302","G47.303","G47.304","G47.401","G54.900","G62.200","G72.400","G83.500","G83.900","G91.000","G91.000x002","G91.000x003","G91.100","G91.100x002","G91.100x003","G91.200","G91.300","G91.301","G91.800x001","G91.800x003","G91.800x004","G91.800x006","G91.801","G91.802","G91.900","G92.x00","G92.x00x002","G92.x00x003","G92.x01","G92.x02","G93.000","G93.000x002","G93.000x006","G93.000x007","G93.000x009","G93.000x010","G93.000x011","G93.000x012","G93.000x013","G93.000x014","G93.000x015","G93.001","G93.002","G93.003","G93.004","G93.005","G93.100","G93.100x002","G93.101","G93.102","G93.200","G93.200x003","G93.200x004","G93.201","G93.300","G93.300x002","G93.301","G93.400","G93.400x001","G93.400x002","G93.400x004","G93.400x005","G93.400x006","G93.400x007","G93.400x008","G93.401","G93.402","G93.403","G93.404","G93.405","G93.500","G93.503","G93.504","G93.700","G93.800x007","G93.800x009","G93.800x010","G93.800x012","G93.800x013","G93.801","G93.802","G93.803","G93.805","G93.806","G93.807","G93.808","G93.809","G93.810","G93.811","G93.812","G93.814","G93.815","G93.900","G93.900x001","G93.901","G93.902","G93.903","G93.904","G95.808","G96.000","G96.000x005","G96.000x006","G96.001","G96.002","G96.003","G96.100","G96.100x001","G96.100x002","G96.100x003","G96.100x004","G96.100x005","G96.100x007","G96.100x008","G96.100x009","G96.100x010","G96.100x013","G96.101","G96.103","G96.104","G96.800x002","G96.800x003","G96.800x005","G96.800x007","G96.900","G96.900x002","G96.900x003","G96.900x004","G96.901","G96.902","G97.000","G97.100","G97.100x002","G97.200","G97.800x001","G97.800x002","G97.800x003","G97.800x004","G97.800x005","G97.800x006","G97.800x008","G97.800x009","G97.801","G97.802","G97.803","G97.900","G98.x00","G98.x00x001","G98.x00x002","H47.005","H47.100","H47.101","H47.300","H47.400","H47.401","H47.500","H47.600","H47.601","H47.700","I66.203","I67.400x001","I67.500","I67.600x003","I67.700x001","I67.700x002","I67.900","I67.900x004+G46.3*","I69.300","I69.300x002","I69.300x003","I69.800x003","I77.302","I86.800x010","M05.301+G63.6*","M32.107+G99.2*","M32.114+G94.8*","M35.008+G94.8*","N18.507+G99.8*","Q00.000x001","Q06.300","Q07.900","Q27.800x025","Q75.001","Q75.800x902","Q85.900x052","Q87.800x301","R20.000","R20.100","R20.200x002","R20.200x003","R20.200x006","R20.201","R20.202","R20.300","R20.801","R20.802","R20.803","R25.000","R25.001","R25.100","R25.100x001","R25.100x002","R25.100x003","R25.300","R25.300x002","R25.800x001","R25.801","R25.802","R25.803","R26.000","R26.000x001","R26.200x001","R26.300","R26.301","R26.800x001","R26.802","R27.800x001","R27.800x002","R27.801","R29.200","R29.300","R29.600","R29.800","R29.800x502","R29.800x503","R29.800x504","R29.800x505","R29.800x507","R29.800x508","R29.802","R29.803","R42.x00x001","R42.x00x002","R42.x00x004","R43.000","R43.100","R43.200","R43.800x001","R43.800x003","R43.800x004","R56.000","R56.800x001","R56.800x003","R56.800x005","R56.801","R56.802","R56.803","R83.000","R83.100","R83.200","R83.300","R83.400","R83.500","R83.600","R83.700","R83.800","R83.900","R83.900","R90.000x003","R90.800x003","R90.801","R90.804","R90.805","R90.807","R93.000x001","R93.000x002","R94.000","R94.001","R94.102","R94.103","T70.203","T79.100x002","T79.801","T80.600x007","T80.600x008","T80.600x009","T85.000","T85.001","T85.002","T85.003","T85.100","T85.100x001","T85.100x002","T85.100x004","T90.300","T90.300x003","T90.301","T90.302","T90.500","T90.501","T90.502","Z46.200x001","Z46.200x002","Z46.201","Z46.202"};
        String[] adrg_zd1={};
        String[] adrg_ss={};
        String[] adrg_ss1={};
        
        if (true && Base.contains(adrg_zd,record.zdList[0])){
            Base.groupMessages.putMessage(record.Index,"符合BZ1入组条件，匹配规则：主诊断匹配");
                
            if (MDCB_DRG.BZ10_group(record)){
                return "BZ10";
            }
    
            if (MDCB_DRG.BZ11_group(record)){
                return "BZ11";
            }
    
            if (MDCB_DRG.BZ13_group(record)){
                return "BZ13";
            }
    
            if (MDCB_DRG.BZ15_group(record)){
                return "BZ15";
            }

            return "BZ1";
        }else{
            return "";
        }
    }
}

